package org.momo.rpc.client;


import io.netty.channel.Channel;
import org.momo.rpc.extention.SPI;
import org.momo.rpc.protocol.RpcMessage;
import org.momo.rpc.protocol.RpcRequest;

import java.net.InetSocketAddress;


@SPI
public interface Client {

    void sendRequest(RpcMessage<RpcRequest> message, InetSocketAddress serverAddress);

    Channel doConnect(InetSocketAddress serverAddress) throws Exception;

}
